<template>
  <div>
    <!-- <h1>药品说明书</h1> -->
    <div
      v-loading="loading"
      element-loading-text="正在加载中..."
      element-loading-spinner="el-icon-loading"
      element-loading-background="#fff"
      style="
        width: 100%;
        height: 100%;
        margin: 0 auto;
        border-radius: 4px;
        overflow: hidden;
      "
    >
      <iframe
        scrolling="auto"
        id="CheckReport"
        name="CheckReport"
        :src="src"
        frameborder="0"
        style="width: 100%; height: 100vh"
      ></iframe>
    </div>
  </div>
</template>

<script>
import iFrame from "@/components/iFrame/index.vue"
export default {
  data() {
    return {
      loading: true, // iframe加载状态
      src:"http://10.10.12.32:9999/pages/docs/docs-query"
    };
  },
  comments:{
    iFrame
  },
  mounted: function () {
    setTimeout(() => {
      this.loading = false;
    }, 300);
    const that = this;
    window.onresize = function temp() {
      that.height = document.documentElement.clientHeight - 94.5 + "px;";
    };
  }
};
</script>

<style lang="scss" scoped></style>
